import 'package:deer/res/colors.dart';
import 'package:deer/res/styles.dart';
import 'package:deer/routers/fluro_navigator.dart';
import 'package:deer/routers/routers.dart';
import 'package:deer/util/utils.dart';
import 'package:deer/widgets/app_bar.dart';
import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';

class StoreAuditResult extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: MyAppBar(
        title: '店铺资料审核',
      ),
      body: Padding(
        padding: const EdgeInsets.symmetric(horizontal: 16),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Gaps.vGap(45),
            Image.asset(
              Utils.getImagePath('store/icon_success'),
              width: 80,
              height: 80,
            ),
            Gaps.vGap(8),
            Text('恭喜，店铺资料审核成功', style: TextStyles.textDark16,),
            Gaps.vGap(8),
            Text(
              "2019-02-21 15:20:10",
              style: TextStyles.textGray12,
            ),
            Gaps.vGap(8),
            Text(
              "预计完成时间：02月28日",
              style: TextStyles.textGray12,
            ),
            Gaps.vGap(24),
            Container(
              height: 44,
              width: double.infinity,
              child: FlatButton(
                color: Colours.app_main,
                textColor: Colors.white,
                shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(3),
                ),
                child: Text('进入', style: TextStyle(fontSize: 18)),
                onPressed: () {
                  NavigatorUtils.push(context, Routes.mainPage, replace: true, clearStack: true, transitionType: TransitionType.cupertinoFullScreenDialog);
                },
              ),
            )
          ],
        ),
      ),
    );
  }
}
